package com.mk.web.aop.advice.aspectj;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * Created by WangChen on 2018/11/30 1:57.
 */
public class AspectjAdvice {

    public void beforeAdvice(){
        System.out.println("aspectj before advice ...");
    }

    public void afterAdvice(){
        System.out.println("aspectj before advice ...");
    }

    public Object myarround(ProceedingJoinPoint p) throws
            Throwable{
        System.out.println("执行环绕");
        System.out.println("环绕-前置");
        Object result = p.proceed();
        System.out.println("环绕后置");
        return result;
    }
}
